# Contributor: Weilu Jia <optix2000@gmail.com>
# Maintainer: Weilu Jia <optix2000@gmail.com>
pkgname=py3-geoip
pkgver=1.3.2
pkgrel=0
pkgdesc="MaxMind GeoIP Legacy Database - Python API"
url="https://github.com/maxmind/geoip-api-python"
arch="all"
license="LGPL-2.1-or-later"
depends="python3 geoip"
makedepends="py3-setuptools python3-dev geoip-dev"
checkdepends="py3-nose"
options="!check" # Until there's an easy way to download legacy GeoIP DBs
source="https://pypi.python.org/packages/source/G/GeoIP/GeoIP-$pkgver.tar.gz"
builddir="$srcdir/GeoIP-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
313af794d839e83408b40573566fb55483c1ddd663a7919b54751bc9da85cf855f9eb17d8fdb641702740da5c5d79d79d3d7f15b82fa88092f780d0c667c4e7a  GeoIP-1.3.2.tar.gz
"
